input geometriesyr12;
input outilssyr;
input constantes;

%---------------------------------------------------------------------------
% Mesure par rapport à un point et comparaison: figure 1
%--------------------------------------------------------------------------
u:=1cm;
figure (-5u,-5u,5u,5u);
pair A,B,C,D,E,F;

B=(3u,4u);
A=(-2u,3u);
C=(4.5u,-1u);
D=(1.5u,-4u);
E=(-4.5u,-4.5u);
F=(-3.5u,0u);

marque_p :="croix";
labeloffset:=2*labeloffset;
nomme.top(A);
nomme.top(B);
nomme.top(C);
nomme.top(D);
nomme.top(E);
nomme.top(F);
labeloffset:=labeloffset/2;

fin;





%----------------------------------------------------------------------------
% Mesure de segments sans nom: figure 2
%----------------------------------------------------------------------------

u:=1cm;
figure (-1u,-1u,10u,4u);
pair A,B,C;

A=(0u,2u);
B=(5u,2u);
C=(7u,2u);

draw A--C;
labeloffset:=2*labeloffset;
pointe(A);
pointe(B);
pointe(C);
nomme.top(A);
nomme.top(B);
nomme.top(C);
labeloffset:=labeloffset/2;
fin;

%---------------------------------------------
%figure 3
%--------------------------------------------
u:=1cm;
figure (-1u,-1u,10u,4u);
pair A,B,C;

A=(0u,2u);
B=(2.5u,2u);
C=(8u,2u);

draw A--C;
labeloffset:=2*labeloffset;
pointe(B);
pointe(C);
pointe(A);

nomme.top(A);
nomme.top(B);
nomme.top(C);
labeloffset:=labeloffset/2;
fin;
end
